package com.suyang.syt.weixin;

import java.util.List;

import com.suyang.syt.model.WeixinGroup;
import com.suyang.syt.model.WeixinUser;

public class WeixinMessage {
	/** 获取到的凭证 */
	private String access_token;
	/** 凭证有效时间，单位：秒 */
	private String expires_in;
	/** 消息ID */
	private String msgid;
	/** 错误代码 */
	private String errcode;
	/** 错误信息 */
	private String errmsg;
	/** 媒体文件类型，分别有图片（image）、语音（voice）、视频（video）和缩略图（thumb，主要用于视频与音乐格式的缩略图） */
	private String type;
	/** 媒体文件上传后，获取时的唯一标识 */
	private String media_id;
	/** 缩略图上传后,获取的唯一标识 */
	private String thumb_media_id;
	/** 媒体文件上传时间戳 */
	private String created_at;
	/** 上传永久素材后得到的URL */
	private String url;
	/** 调用微信组接口正常时的返回JSON数据包 */
	private WeixinGroup group;
	/** 调用微信组接口查询所有分组,正常时返回的组集合 */
	private List<WeixinGroup> groups;
	/** 调用微信借口批量查询用户信息接口的返回值 */
	private List<WeixinUser> user_info_list;
	/** 用户授权时获得的用户ID */
	private String openid;
	/** 获取组ID */
	private int groupid;
	/** 获取的二维码ticket，凭借此ticket可以在有效时间内换取二维码 */
	private String ticket;
	/** 二维码的有效时间，以秒为单位。最大不超过1800 */
	private int expire_seconds;

	public String getAccess_token() {
		return access_token;
	}

	public void setAccess_token(String access_token) {
		this.access_token = access_token;
	}

	public String getExpires_in() {
		return expires_in;
	}

	public void setExpires_in(String expires_in) {
		this.expires_in = expires_in;
	}

	public String getMsgid() {
		return msgid;
	}

	public void setMsgid(String msgid) {
		this.msgid = msgid;
	}

	public String getErrcode() {
		return errcode;
	}

	public void setErrcode(String errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getMedia_id() {
		return media_id;
	}

	public void setMedia_id(String media_id) {
		this.media_id = media_id;
	}

	public String getThumb_media_id() {
		return thumb_media_id;
	}

	public void setThumb_media_id(String thumb_media_id) {
		this.thumb_media_id = thumb_media_id;
	}

	public String getCreated_at() {
		return created_at;
	}

	public void setCreated_at(String created_at) {
		this.created_at = created_at;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public WeixinGroup getGroup() {
		return group;
	}

	public void setGroup(WeixinGroup group) {
		this.group = group;
	}

	public List<WeixinGroup> getGroups() {
		return groups;
	}

	public void setGroups(List<WeixinGroup> groups) {
		this.groups = groups;
	}

	public List<WeixinUser> getUser_info_list() {
		return user_info_list;
	}

	public void setUser_info_list(List<WeixinUser> user_info_list) {
		this.user_info_list = user_info_list;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public int getGroupid() {
		return groupid;
	}

	public void setGroupid(int groupid) {
		this.groupid = groupid;
	}

	public String getTicket() {
		return ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	public int getExpire_seconds() {
		return expire_seconds;
	}

	public void setExpire_seconds(int expire_seconds) {
		this.expire_seconds = expire_seconds;
	}

}
